import http from '@/utils/request'
export const cartgetapi = () => http.get('/cart/activityCartList')
export const handleChangeapi = (isChecked: boolean) => http.get(`/cart/checkAllCart/${isChecked}`)
export const isCheckedapi = (skuId: any, isChecked: number) => http.get(`/cart/checkCart/${skuId}/${isChecked}`)
export const handleChange1api = (isChecked: boolean) => http.get(`/cart/checkAllCart1/${isChecked}`)
export const skuSumapi = (skuId: any, key: string) => http.get(`/cart/addToCart/${skuId}/${key}`)
export const finishapi = (cartitem: number | string | undefined, cartkey: string | undefined) =>
  http.get(`/cart/addToCart/${cartitem}/${cartkey}`)
export const shopskuSumapi = (_id: any, key: string) => http.get(`/cart/shopaddToCart/${_id}/${key}`)
export const shopgetapi = () => http.get('/cart/cartList')
export const finish2api = (cartitem: string | number | undefined, cartkey: string | undefined) =>
  http.get(`/cart/shopaddToCart/${cartitem}/${cartkey}`)
export const shopisCheckedapi = (_id: any, isChecked: number) => http.get(`/cart/shopcheckCart/${_id}/${isChecked}`)
